Skip to content

feat: use Backend.AI cluster SSH key for auto-detected environments#16

Merged
inureyes merged 1 commit into
mainfrom
fix/cluster-key-query
Aug 27, 2025
Merged

feat: use Backend.AI cluster SSH key for auto-detected environments#16
inureyes merged 1 commit into
mainfrom
fix/cluster-key-query

Conversation

@inureyes
Copy link
Copy Markdown
Member

Summary

  • Configure Backend.AI auto-detected clusters to use /home/config/ssh/id_cluster as the SSH key
  • Update from_backendai_env() function to set the correct SSH key path in cluster defaults
  • Add tests to verify the SSH key configuration for Backend.AI environments

Changes

  • Modified src/config.rs: Set SSH key to /home/config/ssh/id_cluster when creating clusters from Backend.AI environment variables
  • Updated tests/backendai_env_test.rs: Added assertions to verify the SSH key is correctly configured

Context

When bssh auto-detects a Backend.AI cluster environment through BACKENDAI_CLUSTER_* environment variables, it now uses the standard Backend.AI cluster SSH key location (/home/config/ssh/id_cluster) instead of default user SSH keys.

This ensures proper authentication in Backend.AI multi-node cluster environments where the cluster-specific key is required.

@inureyes inureyes added add type:enhancement New feature or request labels Aug 27, 2025
@inureyes inureyes self-assigned this Aug 27, 2025
@inureyes inureyes merged commit 7312432 into main Aug 27, 2025
3 checks passed
@inureyes inureyes added priority:medium Medium priority issue status:done Completed feature labels Sep 9, 2025
@inureyes inureyes removed the add label Oct 27, 2025
@inureyes inureyes deleted the fix/cluster-key-query branch October 30, 2025 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:medium Medium priority issue status:done Completed type:enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant